merged [20982]: Fixed capitilization of MySpace in all places, and enabled the MySpac...
[adiumx.git] / Plugins / Purple Service / PurpleMySpaceAccount.m
blob96826967743750e88975d57835e724a1905312f3
1 //
2 //  PurpleMySpaceAccount.m
3 //  Adium
4 //
5 //  Created by Evan Schoenberg on 9/11/07.
6 //
8 #import "PurpleMySpaceAccount.h"
9 #import <Adium/AIHTMLDecoder.h>
11 @implementation PurpleMySpaceAccount
13 - (const char*)protocolPlugin
15     return "prpl-myspace";
18 - (NSString *)connectionStringForStep:(int)step
20         switch (step) {
21         case 0:
22                 return AILocalizedString(@"Connecting",nil);
23                 break;
24         case 1:
25                 return AILocalizedString(@"Reading challenge",nil);
26                 break;
27         case 2:
28                 return AILocalizedString(@"Logging in","Connection step");
29                 break;                  
30         case 3:
31                 return AILocalizedString(@"Connected","Connection step");
32                 break;
33         }
35         return nil;
37         
38 - (NSString *)encodedAttributedString:(NSAttributedString *)inAttributedString forListObject:(AIListObject *)inListObject
40         return [AIHTMLDecoder encodeHTML:inAttributedString
41                                                          headers:YES
42                                                         fontTags:YES
43                                   includingColorTags:YES
44                                            closeFontTags:YES
45                                                    styleTags:YES
46                   closeStyleTagsOnFontChange:YES
47                                           encodeNonASCII:YES
48                                                 encodeSpaces:NO
49                                                   imagesPath:nil
50                                    attachmentsAsText:YES
51                    onlyIncludeOutgoingImages:NO
52                                           simpleTagsOnly:NO
53                                           bodyBackground:NO];
56 @end